package iot.wlink.bean.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import iot.wlink.network.devices.enums.DeviceTypeEm;
import iot.wlink.network.devices.enums.ProtocolsTypeEm;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;

/**
 * @author : willian fu
 * @date : 2021/9/16
 */
@Data
public class DeviceTemplateVo {

    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long tid;

    @NotBlank
    private String name;

    @NotNull
    private ProtocolsTypeEm protocol;

    @NotBlank
    private String format;

    private String avatar;

    private Integer deviceNum;

    private String networkType;

    private Integer status;

    @NotNull
    private DeviceTypeEm deviceType;

    private String remark;

    private Date updated;
}
